import request from '@/utils/request'

export const getDoctorList = (params) => {
  return request({
    url: '/business/doctor/list',
    method: 'get',
    params
  })
}

export const getDoctorById = (userId, query) => {
  return request({
    url: `/business/doctor/${userId}`,
    method: 'get',
    params: query
  })
}

export const editDoctor = (data) => {
  return request({
    url: '/business/doctor',
    method: 'put',
    data
  })
}

export const delDoctors = (ids) => {
  return request({
    url: `/business/doctor/${ids}`,
    method: 'delete'
  })
}

export const modifyAuth = (ids) => {
  return request({
    url: `/business/doctor/auth`,
    method: 'put',
    data: ids
  })
}
